package com.week.tiny_video.dao;

import com.week.tiny_video.pojo.Comment;
import com.week.tiny_video.pojo.User;
import com.week.tiny_video.pojo.Video;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CommentDao extends JpaRepository<Comment,Integer> {
    public List<Comment> findAllByVideo(Video video);
    public List<Comment> findAllByUser(User user);
}
